* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.box-center {
    width: 1280px;
    margin: 0 auto;
}

main {
    width: 1200px;
    height: 500px;
    background-color: orange;
    margin: 0 auto;
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    margin-top: 50px;

    .title {
        margin: 20px;
        font-size: 30px;
    }

    .price {
        width: 70px;
        height: 50px;
        border-radius: 50px;
        background: #c0c0c0;
        text-align: center;
        line-height: 50px;
        font-size: 20px;
        margin-left: 20px;
    }
}


main div:nth-child(1) {
    width: 50%;
    background-color: #666;
}

main div:nth-child(1) .zoom {
    width: 350px;
    height: 340px;
    background-color: #ccc;
    margin: 0 auto;
    margin-top: 50px;
}

main div:nth-child(1) .zoom .pic {
    width: 100%;
    height: 340px;
    background-color: red;
    position: relative;

    &:hover {
        .enlarge {
            display: block;
        }
    }

    .enlarge {
        width: 350px;
        height: 340px;
        overflow: hidden;
        position: absolute;
        top: 128px;
        right: -573px;
        // margin-top: -150px;
        display: none;

        div {
            position: absolute;
        }

        img {
            width: 700px;
            height: 700px;
        }
    }

    span {
        display: block;
        width: 100px;
        height: 100px;
        background: rgba(80, 80, 80, 0.4);
        position: absolute;
        left: 0;
        top: 0;
    }
}

main div:nth-child(1) .zoom .pic img {
    width: 350px;
    height: 340px;
}

main div:nth-child(2) {
    width: 50%;
    background-color: #eeee;
}

.details {
    width: 1200px;
    min-height: 200px;
    margin: 0 auto;
}

.header {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #e3e4e5;
    border-bottom: solid 1px #ddd;

    .icon {
        width: 1em;
        height: 1em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        float: left;
        margin-top: 17px;
        margin-left: 290px;
        margin-right: 10px;
    }

    .back {
        float: left;
        height: 50px;
        cursor: pointer;
        margin-right: 30px;

        &:hover {
            color: red;

        }
    }

    .user {
        float: left;
        height: 50px;
    }
}

.logo-wraper {
    position: relative;
    float: left;
    width: 221px;
    padding-top: 5px;
    padding-left: 89px;
    overflow: hidden;

    .logo {
        display: block;
        height: 30px;
        line-height: 30px;

        img {
            width: auto;
            height: 100%;
        }
    }

    .slogan {
        display: block;
        margin-top: 4px;
        height: 17px;
        line-height: 17px;
        font-family: PingFangSC-Light;
        font-size: 12px;
        color: #666;
        letter-spacing: 17px;
    }
}

.search-wraper {
    position: relative;
    float: left;
    width: 703px;
    padding-bottom: 10px;

    .search-form {
        float: left;
        position: relative;

        .search-input {
            float: left;
            width: 573px;
            height: 36px;
            padding-left: 28px;
            line-height: 36px;
            background: #fff;
            border: 2px solid #ff1f33;
            border-right-width: 0;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
            font-family: MicrosoftYaHei;
            font-size: 13px;
            color: #222;
        }

        .search-btn {
            float: left;
            width: 100px;
            height: 40px;
            background: #ff1f33;
            border-radius: 0 10px 10px 0;
            font-family: MicrosoftYaHei;
            font-size: 17px;
            color: #fff;
            line-height: 40px;
            border: 0;
            cursor: pointer;
            text-align: center;
        }

        svg {
            position: absolute;
            left: 9px;
            top: 12px;
            width: 16px;
            height: 16px;
        }
    }

    .hotword {
        position: absolute;
        left: 30px;
        top: 49px;

        .word {
            float: left;
            padding-right: 16px;
            font-family: MicrosoftYaHei;
            font-size: 13px;
            color: #666;
            line-height: 13px;
        }
    }

}

.bottom {
    width: 75px;
    height: 200px;
    position: fixed;
    right: 10px;
    top: 70%;

    .icon {
        width: 3em;
        height: 3em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        cursor: pointer;
        margin-bottom: 5px;
    }

    a {
        display: block;
        width: 3em;
        height: 3em;
        position: relative;

        span {
            text-align: center;
            width: 30px;
            height: 30px;
            display: block;
            position: absolute;
            right: 5px;
            top: 20px;
            color: #f1f1f1;
            font-size: 16px;
            background: red;
            border-radius: 30px;
            line-height: 30px;
        }
    }
}